-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dash App with Multiple Flask Routes #70
Conversation
Interesting.. I've open a PR just one hour before you did to address a similar use-case. I've just tested it with this structure, and it works well: server.py
app1.py
app2.py
run.py
|
Haha, yeah I saw your PR after I committed the changes, and was a bit confused about how I missed it until I looked at the time stamp. I thought the implementation was different enough to throw some more options out there. |
This is pretty cool! I like this. I don't see any drawbacks to this. Will using |
For a related topic on multi-page URLs, check out #77 |
I am looking at the structure that is coming together here and wondering how the selective authorization use-case can be implemented...
|
I haven't seen any drawbacks to using endpoint, from what I've seen and the related docs is that it changes how the function is stored. By default, it is stored by function name which causes a conflict when you try to store the same name twice unless it is the same object as with the authentication. |
#77 fits my use case better, although I can picture environments where they might be need to be separate |
#77 does not help my use-case. |
FWIW, #77 allows you to do this as well:
|
This looks good to me though. Thanks @rc1405 and @Volodymyrk ! |
This was accidentely removed in a git merge
Wow! Is this in the docs? I have been searching around and only came to this PR from a lengthy discussion thread. |
Has anyone tried to implement flask-login with this solution. It doesn't seem to be working for me. Would be very helpful if anyone could suggest a solution to implement flask-login. |
This was accidentely removed in a git merge
Rebuild components with Python3.7 (remove `async` keyword).
* fix regression + basic test * build.watch, not test * remove .only on tests... * fix copy test * add back cypress issue comment * - copy/paste with sorting - delete cell with and w/o sorting - additional tests for copy/paste * - delete cell tests for sorted and sorted df * fix saving changes on click outside of cell * update changelog * fix useless propagates on click outside / blur
* fix regression + basic test * build.watch, not test * remove .only on tests... * fix copy test * add back cypress issue comment * - copy/paste with sorting - delete cell with and w/o sorting - additional tests for copy/paste * - delete cell tests for sorted and sorted df * fix saving changes on click outside of cell * update changelog * fix useless propagates on click outside / blur
Rebuild components with Python3.7 (remove `async` keyword).
Modified flask endpoints to allow for multiple routes to be added to the Flask server, such as serving multiple Dash apps, or additional content. Simple example below.